<script type="text/javascript" src="http://www.appelsiini.net/download/jquery.jeditable.mini.js" ></script>
<article class="module width_full">
    <header><h3>{#title#}</h3></header>			
	<table style="width:100%;" cellpadding="3" cellspacing="1"> 
			<tr>
				<td class="header">{#img#}</td>
				<td class="header">{#coins#}</td>
				<td class="header" style="text-align:right;">{#action#}</td>
			</tr>
			{if !empty($value)}
		{foreach from=$value item=item}
			{literal}
			<script type="text/javascript">
		   $(document).ready(function() {
			   $('.coins_{/literal}{$item.id}{literal}').editable('_javascript/ajax_livedit.php?action=votecoins&id={/literal}{$item.id}{literal}', {
				   indicator : '{/literal}{#saving#}{literal}',
				   id   : 'coins',
			   });
		   });
		  </script>
		  {/literal}
			<tr>
				<td class="body"><a href="{$item.link}" target="_blank"><img src="{$item.img}" alt=""></a></td>
				<td class="body"><div class="coins_{$item.id}" style="cursor:pointer;">{$item.coins}</div></td>
				<td class="body">
					<a href="index.php?mod=votebanners&amp;action=delete&id={$item.id}"><input style="float:right;" type="button" class="alt_btn" value="{#delete#}" /></a>
				</td>
			</tr>
		{/foreach}
		{else}
			<tr>
				<td class="body" colspan="4">{#nobanner#}</td>
			</tr>
		{/if}
		</table>
    <footer>
        <div class="submit_link">
		<a href="index.php?mod=votebanners&amp;page=add"><input style="float:right;" type="button" class="alt_btn" value="{#add#}" /></a>
        </div>
    </footer>
</article>
<!-- Addet -->
<div class="modal" id="banlist">
        <h3>{#deleted#}</h3>
	<p>{#success_deleted#}</p>
</div>
